<script type="text/javascript">
		//<![CDATA[
		var _calPickDir = '/calpick/';
		var _calImageAlign = 'top';
		var _calTopDistance = 5;
		var _calImageStyle = 'margin-top:' + _calTopDistance + 'px';
		//]]>
		</script>

		<script type="text/javascript" src="/calpick/calpick.js"></script>


<fieldset class="form-fieldset">
			<legend>Reservierung Anlegen</legend>
			<p><a href="karte">Parkbereich</a> | <a href="ticketauswahl">Ticket</a> | <b>Datum</b></p>
			<div class="formularcontainer">
					<form name="reservierungsform" id="reservierungsform" action="" method="post" accept-charset="utf-8">				
						<?php
						if (sizeof($this->hinweise)>0){
							echo "<br><p>Es sind Fehler aufgetreten:</p>"; 
							echo '<div class="fehler">';
							foreach ($this->hinweise as $index => $row){
									echo '<p>'.htmlentities($row).'</p>';
									}
							echo '</div><br>';
						}
						?>
						<p><?php echo $this->form->getElement('parkplatznr') ?></p>
						<p><?php echo $this->form->getElement('ticketnr') ?></p>
						<?php if ($this->festesdatum == false){
							echo '<div class="javascriptkalender">';
							echo $this->form->getElement('datumvon');
							echo '<script type="text/javascript">
									AttachCalendarButton(document.reservierungsform.datumvon);
									</script>
									</div>';
							}else{
								echo '<p>Gültig von ' . date("d.m.Y",strtotime($this->festesdatum['von'])) .' bis '
								. date("d.m.Y",strtotime($this->festesdatum['bis'])) . ' .</p>'; 
							}
						?>
						
						
						<p><br/></p>
						
						<p><?php echo $this->form->getElement('reservieren') ?></p>
						
						 
					</form> 
			
			</div>
</fieldset>
